export default [
  {
    path: '/user',
    routes: [
      {
        path: '/user',
        redirect: '/user/login',
      },
      {
        path: '/user/login',
        component: './Authorized/AuthLogin',
      },
    ],
  },
  {
    path: '/',
    component: '../layouts/UserInfoLayout', //包裹一层用于获取用户信息
    routes: [
      { path: '/', redirect: '/security' },
      {
        path: '/security',
        component: '../layouts/BasicLayout',
        routes: [
          { path: '/security', redirect: '/security/operator' },
          {
            path: '/security/operator',
            name: '业务统计',
            icon: 'Appstore',
            routes: [
              {
                path: '/security/operator',
                redirect: '/security/operator/cityconfig',
              },
              {
                path: '/security/operator/cityconfig',
                name: '城市社保业务管理',
                icon: 'Bars',
                component: './CityConfig',
              },
              {
                path: '/security/operator/cityconfigmsg',
                name: '城市维护提示管理',
                icon: 'Bars',
                component: './CityConfigMsg',
              },
              {
                path: '/security/operator/citypay',
                name: '城市最新缴费管理',
                icon: 'Bars',
                component: './CityPay',
              },
              {
                path: '/security/operator/bindfail',
                name: '绑卡失败查询',
                icon: 'Bars',
                component: './BindFail',
              },
              {
                path: '/security/operator/cardoperate',
                name: '卡操作日志查询',
                icon: 'Bars',
                component: './CardOperate',
              },
              {
                path: '/security/operator/decrypt',
                name: '解密',
                icon: 'Bars',
                component: './Decrypt',
              }
            ],
          },
          {
            path: '/security/card',
            name: '卡信息',
            icon: 'Appstore',
            routes: [
              { path: '/security/card', redirect: '/security/card/securityinfor' },
              {
                path: '/security/card/securityinfor',
                name: '社保卡绑卡信息',
                icon: 'Bars',
                component: './SecurityInfor',
              },
              {
                path: '/security/card/fundinfor',
                name: '公积金绑卡信息',
                icon: 'Bars',
                component: './FundInfor',
              }
            ]
          },
          {
            //渠道
            path: '/security/statistics',
            name: '业务统计',
            icon: 'Appstore',
            routes: [
              { path: '/security/statistics', redirect: '/security/statistics/bugstatistics' },
              {
                path: '/security/statistics/bugstatistics',
                name: '每日bug汇总统计',
                icon: 'Bars',
                hideInMenu: false,
                component: './BugStatistics',
                Routes: ['src/pages/Authorized/Authorized'],
                authority: 'smsPush:view',
              },
              {
                path: '/security/statistics/bug',
                name: '每日bug汇总',
                icon: 'Bars',
                hideInMenu: false,
                component: './Bug',
                Routes: ['src/pages/Authorized/Authorized'],
                authority: 'smsPush:view',
              }
            ]
          },
          {
            path: '/security/report',
            name: '城市业务报表',
            icon: 'Appstore',
            routes: [
              { path: '/security/report', redirect: '/security/report/reportsecurity' },
              {
                path: '/security/report/reportsecurity',
                name: '城市社保业务管理',
                icon: 'Bars',
                hideInMenu: false,
                component: './ReportSecurity',
                Routes: ['src/pages/Authorized/Authorized'],
                authority: 'smsPush:view',
              },
              {
                path: '/security/report/reportfund',
                name: '城市公积金业务管理',
                icon: 'Bars',
                hideInMenu: false,
                component: './ReportFund',
                Routes: ['src/pages/Authorized/Authorized'],
                authority: 'smsPush:view',
              },
              {
                path: '/security/report/report',
                name: '城市报表',
                icon: 'Bars',
                hideInMenu: false,
                component: './Report',
                Routes: ['src/pages/Authorized/Authorized'],
                authority: 'smsPush:view',
              }
            ]
          },
          {
            component: './404/404',
          },
        ],
      },
      {
        component: './404/404',
      },
    ],
  },
];
